<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<head></head>
<ui:composition template="/WEB-INF/template/template.xhtml">
	<ui:define name="content">
		<div class="content">

			<f:view locale="#{language.locale}">
				<f:loadBundle basename="properties.messages" var="msg" />
				<div class="loginTitle">
					<div class="loginHeader">#{msg.welcome}</div>
				</div>
				<br/>
				<center>
					
					<h:form class="loginSquare">
						<br />
						<h:panelGrid border="0" columns="3">
							<h:outputText value="#{msg.username}"></h:outputText>
							<h:inputText id="nameFailed" 
								value="#{dTOUser.name}"
								validator="#{myLoginController.validateName1}" >							
							</h:inputText>
							<h:message for="nameFailed"></h:message>

							<h:outputText value="#{msg.password}"></h:outputText>
							<h:inputSecret id="passwordFailed" 
							value="#{dTOUser.password}"
								validator="#{myLoginController.validatePassword1}">
							
							</h:inputSecret>

							<h:message for="passwordFailed"></h:message>
						</h:panelGrid>
						<br />
						
						<h:commandButton class="submitButton" 
							action="#{myLoginController.addressRedirect}" value="#{msg.login}" />
						<br />
						<br />
					</h:form>
				</center>

			</f:view>
		</div>
	</ui:define>
</ui:composition>
</html>